﻿@model IEnumerable<AutomatedTestDataManagement.Models.HTMLField>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.Label("Field Name")
        </th>
        <th>
            @Html.Label("Field Type")
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.FieldName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FieldType.FieldTypeName)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.FieldID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.FieldID })
        </td>
    </tr>
}

</table>
<div>
    @Html.Partial("_NavigationManagementNav")
</div>